tangramdata = [
 [(250, 99, 180), (349, 0, 270), (200, -49, 225), (151, 49, 90), (250, -49, 0), (200, 0, 45), (274, -74, 90), 1],
 [(-85, -56, 315), (-225, -56, 45), (-65, 62, 135), (-275, 84, 0), (-201, -125, 0), (-261, 48, 270), (-118, -125, 45), -1],
 [(-85, -112, 225), (-56, -42, 180), (-156, 28, 0), (-191, -146, 45), (-120, 63, 45), (-191, -76, 270), (-157, -6, 45), 1],
 [(-89, -12, 0), (-120, -83, 315), (-239, -63, 135), (60, -12, 0), (-166, -183, 0), (9, 36, 315), (-289, -148, 225), 1],
 [(27, -43, 270), (-121, 5, 180), (-292, 77, 0), (29, -137, 90), (-76, -147, 135), (-72, -92, 315), (-221, 41, 135), -1],
 [(-173, -116, 90), (-73, -116, 90), (-223, 129, 135), (-74, -67, 270), (-173, 131, 90), (-123, -17, 315), (-149, 56, 0), 1],
 [(-208, -33, 0), (-7, -32, 0), (-107, -173, 0), (-107, 13, 270), (-106, 114, 180), (-107, -68, 0), (-82, 40, 180), 1],
 [(-166, -47, 90), (-236, -17, 135), (-94, -20, 45), (-148, -175, 0), (-9, -137, 45), (-9, -67, 270), (-240, -112, 270), -1],
 [(-111, -4, 270), (-110, -5, 90), (-12, -74, 0), (-112, -155, 0), (-259, -4, 0), (-210, 45, 315), (-8, -99, 90), 1],
 [(-83, 65, 270), (-214, -152, 315), (7, -53, 270), (-67, -47, 225), (-278, 22, 45), (-138, -47, 270), (-209, -11, 135), 1],
 [(-94, -61, 315), (-66, -132, 0), (-114, 57, 135), (-263, 10, 90), (-165, 15, 270), (-214, 64, 315), (-189, -60, 0), -1],
 [(1, 25, 315), (30, -44, 270), (6, -189, 0), (-165, 102, 0), (-68, 103, 270), (-117, 153, 315), (-94, 29, 0), -1],
 [(-78, -78, 315), (-216, -78, 45), (-166, -129, 225), (-101, -151, 0), (-25, 61, 0), (-43, 26, 270), (-285, 26, 315), -1],
 [(-122, -1, 30), (-47, -10, 75), (-147, 12, 210), (-302, -12, 120), (-15, -94, 120), (-234, 5, 345), (-174, -82, 30), 1],
 [(-159, -85, 0), (-60, -85, 45), (-259, 11, 315), (-172, -121, 315), (9, 5, 90), (-208, 12, 315), (-239, 96, 45), 1],
 [(-57, -109, 45), (-188, -76, 90), (-57, -38, 0), (-189, 41, 270), (-221, 108, 180), (-127, 11, 315), (-213, -34, 0), -1],
 [(-131, -85, 285), (-56, -74, 60), (-124, -57, 105), (-325, -13, 100), (-226, -9, 270), (-276, -59, 315), (14, 53, 330), 1],
 [(-140, -23, 270), (-238, -122, 90), (-170, -222, 0), (-183, 198, 30), (-98, 197, 330), (-142, 124, 315), (-90, 17, 120), 1],
 [(-209, -75, 300), (-161, 7, 120), (-110, -102, 300), (-308, 22, 255), (-50, 4, 30), (-69, 71, 345), (-121, 129, 300), -1],
 [(-57, -17, 90), (-256, -18, 270), (-108, 32, 135), (-106, -17, 180), (-205, -18, 90), (-158, 32, 315), (-231, 6, 0), -1],
 [(-305, -20, 135), (32, -21, 225), (-137, -50, 225), (-137, 0, 180), (-38, 0, 270), (-88, -49, 315), (-211, -25, 0), -1],
 [(-65, -10, 0), (-194, -39, 315), (-70, -60, 45), (37, 53, 315), (84, -19, 315), (14, -45, 270), (-322, -21, 30), 1],
 [(-137, -77, 90), (-108, -147, 135), (-137, 160, 90), (-173, -12, 135), (-171, -81, 315), (-173, 56, 270), (-222, 160, 135), 1],
 [(-209, -84, 315), (-166, -42, 135), (-24, 28, 0), (-61, -76, 315), (-48, -112, 270), (-61, -6, 0), (-308, 20, 135), -1],
 [(-123, 50, 225), (-123, -89, 45), (-74, -208, 0), (-227, 116, 135), (-193, -26, 270), (-123, -140, 315), (20, -183, 90), 1],
 [(-142, 14, 180), (-71, -14, 135), (-191, -35, 225), (0, -102, 90), (-209, 82, 345), (-286, 40, 345), (-243, -119, 45), 1],
 [(-163, -33, 60), (-209, -93, 15), (-60, -112, 330), (-292, -21, 195), (-280, -109, 330), (-53, -27, 285), (22, -12, 240), -1],
 [(-174, -30, 45), (-104, -3, 90), (-54, -121, 0), (-255, 35, 0), (-303, 84, 90), (-6, -52, 315), (-269, 15, 90), 1],
 [(-154, -78, 300), (-80, -88, 75), (-141, -52, 120), (-339, 14, 90), (-241, 19, 270), (-290, -30, 315), (38, 12, 0), 1],
 [(-106, 41, 225), (-106, -98, 315), (-315, -30, 90), (-211, -66, 225), (-211, -136, 45), (-24, 32, 315), (-211, 40, 225), -1],
 [(-161, -48, 270), (-189, -119, 225), (-21, 121, 180), (-54, 87, 225), (-54, 156, 225), (-56, 19, 0), (-125, 52, 225), -1],
 [(-100, 8, 285), (-222, -61, 15), (-42, -28, 210), (-263, -124, 45), (-122, -123, 315), (-192, -123, 0), (-87, -123, 45), 1],
 [(-213, -73, 180), (-245, 13, 150), (-63, 61, 285), (-165, -173, 0), (-66, -74, 180), (-116, -123, 315), (-115, 4, 150), 1],
 [(-251, 11, 180), (17, 11, 180), (-115, 11, 0), (-187, -93, 315), (-187, -23, 135), (-116, -22, 180), (-45, -59, 135), 1],
 [(-39, -28, 45), (-180, -28, 315), (-113, 41, 0), (65, 6, 225), (64, -63, 45), (-110, -7, 315), (-285, -27, 225), -1],
 [(-277, 36, 150), (-141, 28, 135), (0, 8, 210), (-48, -86, 315), (-189, -85, 45), (-119, -86, 0), (-225, -86, 315), -1],
 [(-141, 13, 75), (-20, -55, 345), (-189, -82, 180), (-120, 121, 255), (-191, 17, 180), (-241, -32, 315), (-118, -117, 225), 1],
 [(-245, -21, 135), (-105, 71, 315), (-128, -73, 90), (-106, -170, 270), (-128, 0, 270), (-124, 189, 315), (-210, 141, 135), 1],
 [(-182, -71, 90), (-35, 15, 210), (-185, 30, 45), (-149, -186, 270), (-83, 80, 0), (-189, 165, 270), (-161, 105, 90), -1],
 [(-106, -73, 270), (-254, 12, 150), (-97, 34, 315), (-93, -185, 225), (-163, 168, 225), (-63, 169, 180), (-123, 109, 90), 1],
 [(-154, 21, 90), (-55, -77, 0), (-105, 72, 45), (-105, -77, 180), (-102, 122, 0), (-156, 172, 315), (-80, -151, 180), 1],
 [(-225, 16, 120), (-90, 52, 210), (-77, -67, 300), (-199, 60, 300), (-67, -50, 120), (-274, 21, 315), (-14, -109, 300), -1],
 [(-234, -52, 90), (-114, 65, 315), (-184, 66, 270), (-210, -176, 270), (-136, -3, 180), (-228, 160, 345), (-62, -27, 270), -1],
 [(-241, -41, 90), (-143, -139, 0), (-79, -33, 270), (-242, -89, 270), (-79, -56, 90), (-290, -27, 330), (-8, -30, 90), 1],
 [(-30, -166, 0), (-102, -137, 315), (-101, -66, 0), (-150, 2, 90), (-102, 51, 180), (-249, 104, 315), (-176, 30, 0), -1],
 [(-157, 38, 180), (-58, -59, 270), (-106, 88, 225), (-257, -10, 0), (-87, -179, 90), (-87, 136, 285), (-191, 139, 135), 1],
 [(-81, 77, 270), (-128, -112, 180), (-129, -42, 90), (-47, 15, 225), (-31, -20, 180), (-169, 151, 30), (-204, 52, 90), 1],
 [(-80, 73, 180), (-134, -70, 0), (-207, -71, 180), (-280, -71, 0), (15, -120, 180), (-95, 123, 300), (-60, -95, 90), 1],
 [(-215, 8, 135), (-74, 8, 315), (-93, -79, 0), (-297, -146, 315), (-16, -80, 180), (-94, 123, 345), (-215, -97, 225), 1],
 [(-90, 12, 15), (-136, -48, 330), (-64, 144, 315), (-160, -159, 240), (-67, 142, 135), (-155, -98, 330), (-237, -21, 150), 1],
 [(-79, 32, 315), (-147, -136, 0), (-150, 32, 270), (-37, 24, 270), (-1, 39, 225), (-99, -37, 315), (-226, -34, 75), 1],
 [(-142, -112, 135), (-114, 0, 45), (-138, 119, 225), (-185, 17, 90), (-220, 37, 135), (-122, -41, 315), (-91, 104, 315), -1],
 [(-172, 13, 0), (-170, -81, 180), (-103, 112, 270), (-111, -50, 0), (-226, -49, 0), (-9, -2, 285), (-69, 111, 135), 1],
 [(-119, 29, 315), (-71, -119, 225), (-50, 29, 270), (-136, 146, 255), (-102, 147, 105), (-121, -20, 315), (-203, -90, 225), -1],
 [(-192, 63, 0), (-143, -133, 180), (-193, -82, 225), (-193, 62, 180), (-143, -83, 270), (-194, -35, 315), (-123, 199, 45), 1],
 [(-169, 34, 45), (-138, -93, 90), (-99, 103, 0), (-186, 4, 0), (-64, 68, 315), (-173, -29, 0), (-65, 33, 45), -1],
 [(-134, 1, 45), (-142, -87, 90), (-179, 71, 0), (-143, -36, 270), (-177, -120, 45), (-191, 11, 315), (-111, 105, 315), -1],
 [(-175, 6, 90), (-76, -91, 270), (-93, -174, 225), (-206, 123, 345), (-147, 181, 285), (-128, 118, 210), (-234, 53, 30), 1],
 [(-163, -17, 210), (-75, -68, 30), (-302, 37, 120), (-256, -79, 120), (16, 41, 330), (-171, 94, 300), (-115, 29, 285), -1],
 [(-262, -66, 90), (-131, -99, 45), (-153, 19, 135), (-296, 25, 135), (-158, -115, 0), (-124, 99, 240), (8, -64, 315), -1],
 [(-176, -29, 225), (-112, -100, 45), (-296, 48, 135), (-211, -134, 315), (-17, -73, 60), (-169, 102, 345), (-183, 22, 330), -1],
 [(-99, -92, 270), (-197, 7, 90), (-148, -142, 225), (-99, -44, 90), (-179, 178, 0), (-184, 143, 270), (-75, 34, 90), 1],
 [(-126, -90, 45), (-126, 49, 135), (-105, -112, 225), (-116, -195, 135), (-54, 188, 0), (-59, 154, 270), (-174, 52, 270), -1],
 [(-167, -90, 225), (-167, 51, 225), (-237, 51, 270), (-189, -18, 180), (-64, -52, 45), (-97, 87, 270), (-98, 16, 315), -1],
 [(-168, -88, 90), (-69, -187, 0), (-121, 30, 270), (-170, 99, 180), (-246, 57, 135), (-131, 142, 345), (-85, -39, 135), 1],
 [(-90, -17, 135), (-120, 52, 90), (-70, -136, 45), (-70, -186, 0), (-227, -129, 135), (-156, 160, 270), (-156, -50, 45), -1],
 [(-213, 1, 90), (-144, -196, 0), (-71, 28, 180), (-110, -131, 45), (-110, -62, 225), (-191, 129, 315), (-180, -97, 225), -1],
 [(-199, -86, 90), (-100, -184, 0), (-171, 55, 270), (-223, -30, 300), (-118, 173, 210), (-185, 156, 345), (-135, -17, 135), 1],
 [(-111, 51, 180), (-145, -110, 90), (-195, -61, 135), (-210, 1, 0), (-12, 1, 270), (-116, 101, 315), (-245, -145, 225), 1],
 [(-254, -98, 315), (-224, -168, 0), (-100, -99, 90), (-124, 14, 240), (-124, 13, 60), (-284, 21, 45), (-26, -145, 270), -1],
 [(-128, -21, 0), (-158, -92, 45), (-158, -161, 0), (5, -55, 45), (-42, -67, 105), (-77, 94, 345), (-228, -126, 225), 1],
 [(-16, -38, 270), (-115, -137, 0), (-86, 60, 0), (-122, -45, 315), (-51, 24, 315), (-122, 25, 0), (-182, -55, 180), 1],
 [(-291, -38, 135), (61, -40, 225), (-9, -39, 270), (-186, -3, 315), (-44, -4, 315), (-115, -4, 270), (-186, -38, 225), -1],
 [(-71, -90, 315), (-72, -90, 135), (-71, -22, 0), (-176, -125, 225), (-176, -126, 45), (-176, -57, 270), (-141, 13, 45), 1],
 [(-36, 1, 225), (-176, 0, 135), (-175, -68, 180), (-71, -102, 135), (-210, -103, 225), (-2, -103, 90), (-106, -103, 45), 1],
 [(-275, -16, 135), (75, -16, 225), (-134, -14, 0), (-169, 18, 315), (-30, 19, 45), (-101, -50, 270), (-64, 19, 315), -1],
 [(-274, -110, 0), (25, -110, 0), (-124, -30, 0), (-174, 37, 180), (-24, -11, 180), (-224, -11, 315), (-48, 13, 90), 1],
 [(-142, -158, 45), (-142, -157, 225), (-144, -39, 315), (-143, -88, 0), (-95, -39, 270), (-143, 45, 270), (-140, 156, 345), 1],
 [(-231, 3, 135), (-91, 3, 225), (-231, -65, 180), (-196, -100, 135), (-55, -100, 315), (-126, -101, 270), (-157, 153, 165), 1],
 [(-29, -42, 225), (-28, -43, 45), (-28, -112, 180), (-133, -6, 225), (-134, -76, 45), (-274, 62, 270), (-203, 28, 135), 1],
 [(-134, -83, 225), (-134, -82, 45), (-134, -11, 0), (-15, -10, 0), (-15, -81, 180), (17, -46, 180), (-240, -52, 135), 1],
 [(-167, -81, 90), (-117, -228, 0), (-119, 39, 180), (-68, -129, 270), (-69, -30, 270), (-118, 74, 0), (-118, 189, 345), 1],
 [(-173, -47, 180), (-73, -147, 0), (-223, -97, 225), (-139, 16, 45), (-119, -46, 0), (-274, 2, 315), (-199, 27, 90), 1],
 [(-148, 24, 180), (-147, 95, 0), (-166, -142, 105), (-147, 59, 315), (-77, 59, 135), (-218, 60, 0), (-113, 59, 225), 1],
 [(-187, -15, 180), (-117, -15, 0), (-68, 34, 45), (-88, -64, 270), (-134, -113, 0), (-53, -51, 270), (-216, 20, 225), 1],
 [(-111, 55, 225), (-70, -14, 180), (-121, -63, 225), (-217, 22, 45), (-215, 21, 225), (-204, -49, 270), (-41, 20, 135), -1],
 [(-68, 52, 180), (-166, -47, 0), (-167, -118, 0), (-18, -46, 0), (-119, -48, 180), (31, 2, 315), (-242, -73, 270), -1],
 [(-103, -139, 315), (-103, 69, 315), (-33, 69, 270), (-138, -33, 225), (-68, -34, 135), (-104, 20, 315), (-69, -140, 225), -1],
 [(-165, -82, 315), (-165, 58, 135), (-86, -102, 135), (-95, 33, 90), (-90, -60, 0), (-46, -11, 315), (-162, -127, 270), -1],
 [(-64, -8, 225), (-204, -8, 45), (-133, -78, 180), (-240, 27, 225), (-98, -114, 135), (-28, -114, 0), (-205, -43, 315), -1],
 [(-273, -72, 45), (7, -72, 315), (-134, -3, 180), (-97, -107, 135), (-168, -38, 225), (-169, -107, 0), (-98, -73, 225), -1],
 [(-240, -14, 270), (-239, -14, 90), (-190, -64, 135), (-191, 85, 180), (-92, -15, 90), (-142, 35, 315), (-116, -39, 180), 1],
 [(-102, -121, 0), (-3, -23, 270), (-53, 25, 315), (-101, 26, 270), (-196, -71, 0), (-151, -23, 315), (-226, -97, 270), -1],
 [(-96, 61, 225), (-96, 62, 45), (-96, -8, 180), (-61, -42, 135), (-131, -112, 225), (-61, -112, 270), (-131, -77, 315), 1],
 [(-106, -148, 315), (-106, 129, 135), (-105, 60, 180), (-70, -44, 135), (-141, 27, 225), (-141, -43, 0), (-71, -10, 45), -1],
 [(-51, 103, 270), (-51, -91, 270), (-100, 54, 225), (-149, 55, 270), (-150, -42, 180), (-199, 6, 315), (-124, -18, 270), -1],
 [(-104, -118, 0), (-55, 28, 180), (-254, -69, 135), (-203, -74, 90), (-6, -68, 270), (-155, -20, 315), (19, -44, 0), 1],
 [(-127, -108, 225), (-128, 97, 135), (-58, -40, 270), (-93, -143, 45), (-93, -7, 315), (-162, -7, 270), (-129, -74, 315), -1],
 [(-135, 7, 225), (-134, 6, 45), (-133, 76, 0), (-168, -98, 45), (-100, -167, 315), (-100, -97, 0), (-171, -131, 135), 1],
 [(-191, 38, 315), (-191, -103, 225), (-119, -103, 90), (-86, 73, 225), (-155, 3, 315), (-155, -67, 270), (-121, 2, 45), 1],
 [(-153, -28, 180), (-252, -127, 0), (-183, -29, 0), (-104, -127, 0), (0, -128, 0), (-55, -79, 315), (-114, 6, 315), -1],
 [(-265, -41, 45), (-49, 33, 180), (-98, -13, 225), (-96, -62, 180), (-160, 20, 315), (-146, -112, 45), (-171, -38, 180), 1]
]
